﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class pickUpRange_plus : Skill
{
    public void Awake()
    {
        once = false;
    }

    // Start is called before the first frame update
    public override void Active(GameObject go)
    {
        if (go.tag == "Player")
        {
            go.transform.GetComponent<Player>().pickUpRange += 0.1f;
            go.transform.GetComponent<Player>().setPickUpRange(Player.Insatance.pickUpRange);
        }
        else if(go.tag == "Enemy")
        {
            go.transform.GetComponent<Enemy>().pickUpRange += 0.1f;
            go.transform.GetComponent<Enemy>().setPickUpRange(Player.Insatance.pickUpRange);
        }
        
        //base.Active();
    }
}
